import ramdom as r

l = r.randint(0, 100000)


txt += l + "\n"

for i in range(0, l):
    txt += r.randint(0,10000) + " "

f = open("sort.in", "w+")
f.write(txt)
f.close()